package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.ShoppingCartQueryClientFallback;
import com.zqh.myfmmall.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-02-21 0:52
 */
@FeignClient(value = "shoppingcart-query",fallbackFactory = ShoppingCartQueryClientFallback.class)
public interface ShoppingCartQueryClient{
    @PostMapping("shoppingCart/listByIds")
    Result listByIds(@RequestBody List<String> ids);

    @PostMapping("shoppingCart/listVoByIds")
    Result listVoByIds(@RequestBody List<String> ids);

    @GetMapping("shoppingCart/listVo")
    Result listVoByUserId(@RequestParam("userId") String userId);


}
